<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:80:"D:\xampp\htdocs\thinkphp5_home\public/../application/admin\view\index\index.html";i:1477464285;s:79:"D:\xampp\htdocs\thinkphp5_home\public/../application/admin\view\public\top.html";i:1478242017;s:80:"D:\xampp\htdocs\thinkphp5_home\public/../application/admin\view\public\left.html";i:1478241966;}*/ ?>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
</head>
<body>

<!--页面顶部导航模块-->
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a href="<?php echo url('../index/Index/index'); ?>">首页</a></li>
                <li><a href="<?php echo url('Index/index'); ?>" target="_blank" class="on" >后台</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
            
                <li><a href="#">
                <?php 
                switch (session('user_type')){
                  case 0:
                    $username = '订阅用户';
                    break;
                  case 1:
                    $username = '投稿者';
                    break;
                  case 2:
                    $username = '系统作者';
                    break;
                  case 3:
                    $username = '系统编辑';
                    break;
                  case 4:
                    $username = '系统管理员';
                    break;
                  default:
                    $username = '未知身份';
                }
                echo (session('user_name')." | ".$username); ?>
                </a></li>
                <li><a href="<?php echo url('User/edit',array('id'=>session('user_id'))); ?>">修改密码</a></li>
                <li><a href="<?php echo url('Login/logout'); ?>">退出</a></li>
            </ul>
        </div>
    </div>
</div>

<div class="container clearfix">

<!--页面左侧导航模块-->
<div class="sidebar-wrap">
	<div class="sidebar-title">
		<h1>菜单</h1>
	</div>
  <!--变量获取-->
  <?php $USER_TYPE=$_SESSION['think']['user_type']; ?>
	<div class="sidebar-content">
		<ul class="sidebar-list">
			<li>
				<?php if(($USER_TYPE > 0)): ?><a href="#"><i class="icon-font">&#xe003;</i>常用操作</a><?php endif; ?>
        
				<ul class="sub-menu">
          <!--0订阅者 1投稿者 2作者 3编辑 4管理员-->
          
					<?php if(($USER_TYPE > 2)): ?><li><a href="<?php echo url('Category/index'); ?>"><i class="icon-font">&#xe008;</i>栏目管理</a></li><?php endif; if(($USER_TYPE > 0)): ?><li><a href="<?php echo url('Article/index'); ?>"><i class="icon-font">&#xe005;</i>文章管理</a></li><?php endif; if(($USER_TYPE > 2)): ?><li><a href="<?php echo url('Page/index'); ?>"><i class="icon-font">&#xe012;</i>页面管理</a></li><?php endif; if(($USER_TYPE > 2)): ?><li><a href="<?php echo url('Link/index'); ?>"><i class="icon-font">&#xe052;</i>友情链接</a></li><?php endif; if(($USER_TYPE > 2)): ?><li><a href="design.html"><i class="icon-font">&#xe004;</i>留言管理</a></li><?php endif; if(($USER_TYPE > 2)): ?><li><a href="design.html"><i class="icon-font">&#xe033;</i>广告管理</a></li><?php endif; if(($USER_TYPE > 3)): ?><li><a href="<?php echo url('User/index'); ?>"><i class="icon-font">&#xe014;</i>用户管理</a></li><?php endif; ?>
				</ul>
			</li>
			<li>
				<?php if(($USER_TYPE > 3)): ?><a href="#"><i class="icon-font">&#xe018;</i>系统管理</a><?php endif; ?>
				<ul class="sub-menu">
					<?php if(($USER_TYPE > 3)): ?><li><a href="<?php echo url('Config/siteinfo'); ?>"><i class="icon-font">&#xe044;</i>网站信息</a></li><?php endif; ?>
					<!--li><a href="<?php echo url('Config/clist'); ?>"><i class="icon-font">&#xe017;</i>系统配置</a></li>
					<li><a href="<?php echo url('Config/index'); ?>"><i class="icon-font">&#xe003;</i>配置管理</a></li-->
					<?php if(($USER_TYPE > 3)): ?><li><a href="system.html"><i class="icon-font">&#xe037;</i>清理缓存</a></li><?php endif; if(($USER_TYPE > 3)): ?><li><a href="system.html"><i class="icon-font">&#xe016;</i>数据备份</a></li><?php endif; if(($USER_TYPE > 3)): ?><li><a href="system.html"><i class="icon-font">&#xe045;</i>数据还原</a></li><?php endif; ?>
				</ul>
			</li>
		</ul>
	</div>
</div>

    <!--/sidebar-->
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font">&#xe06b;</i><span>欢迎您<span><a target="_blank" style="color:#f00; margin:0 20px;" href="#"></a></span></span></div>
        </div>
        <div class="result-wrap">
            <div class="result-title">
                <h1>快捷操作</h1>
            </div>
            <div class="result-content">
                <div class="short-wrap">
                    <a href="<?php echo url('Article/insert'); ?>"><i class="icon-font">&#xe001;</i>新增文章</a>
                    <a href="<?php echo url('Category/insert'); ?>"><i class="icon-font">&#xe005;</i>新增分类</a>
                    <a href="<?php echo url('Link/insert'); ?>"><i class="icon-font">&#xe048;</i>新增友情链接</a>
                    <a href="#"><i class="icon-font">&#xe01e;</i>留言管理</a>
                    <a href="<?php echo url('User/insert'); ?>"><i class="icon-font">&#xe041;</i>新增用户</a>
                </div>
            </div>
        </div>
        <div class="result-wrap">
            <div class="result-title">
                <h1>系统基本信息</h1>
            </div>
            <div class="result-content">
                <ul class="sys-info-list">
                    <li>
                        <label class="res-lab">服务器域名</label><span class="res-info"><?php echo $SERVER_DOMAIN; ?></span>
                    </li>
                    <li>
                        <label class="res-lab">服务器IP</label><span class="res-info"><?php echo $HOST_IP; ?></span>
                    </li>
                    <li>
                        <label class="res-lab">操作系统</label><span class="res-info"><?php echo $SERVER_OS; ?>-<?php echo $SERVER_OS_VERSION; ?></span>
                    </li>
                    <li>
                        <label class="res-lab">运行环境</label><span class="res-info"><?php echo $SERVER_SOFTWARE; ?></span>
                    </li>
                    <li>
                        <label class="res-lab">PHP版本</label><span class="res-info"><?php echo $PHP_VERSION; ?></span>
                    </li>
                    <li>
                        <label class="res-lab">运行方式</label><span class="res-info"><?php echo $PHP_SAPI_NAME; ?></span>
                    </li>
                    <li>
                        <label class="res-lab">内存限制</label><span class="res-info"><?php echo $MEMORY_LIMIT; ?></span>
                    </li>
                    <li>
                        <label class="res-lab">上传限制</label><span class="res-info"><?php echo $UPLOAD_MAX_FILESIZE; ?></span>
                    </li>
                    <!--li>
                        <label class="res-lab">SMTP</label><span class="res-info"><?php echo $SMTP_SUPPORT; ?></span>
                    </li-->
                    <li>
                        <label class="res-lab">MySQL版本</label><span class="res-info"><?php echo $MYSQL_VER; ?></span>
                    </li>
                </ul>
            </div>
        </div>
        <div class="result-wrap">
            <div class="result-title">
                <h1>当日信息统计</h1>
            </div>
            <div class="result-content">
                <ul class="sys-info-list">
                    <li>
                        <label class="res-lab">登录用户数</label><span class="res-info"><?php echo $Dairy_Login; ?></span>
                    </li>
                    <li>
                        <label class="res-lab">当前时间</label><span class="res-info"><?php echo $PHP_SERVER_TIME; ?></span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>